package com.zh.common.exception;


/**
 * @author Lilong 2019/7/24
 */
public enum ErrorCode {

    /**
     * 成功
     */
    SUCCESS(200, "成功/Success"),
    /**
     * 系统错误
     */
    UNKNOWNERROR(500, "系统错误/UnknownError"),
    /**
     * 系统错误
     */
    SYSTEMERROR(501, "系统错误{%s}"),
    /**
     * 参数校验失败
     */
    INVALID_PARAM_FAIL(401, "参数校验失败{%s}"),
    /**
     * 文件上传失败
     */
    FILE_UPLOAD_FAIL(601, "文件上传失败"),
    /**
     * 文件校验失败
     */
    EXCEL_CHECK_FAIL(602, "文件校验失败"),
    /**
     * 文件处理失败
     */
    EXCEL_PROCESS_FAIL(603, "文件处理失败"),
    ;
    private Integer code;

    private String msg;

    ErrorCode(Integer retCode, String retMsg) {
        this.code = retCode;
        this.msg = retMsg;
    }
    public Integer getCode() {
        return code;
    }
    public String getMsg() {
        return msg;
    }
}
